<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/admin/business.js"></script> 
<div class="right">
	<div id="bread-nav" class="fn-clear">
		<ul>
			<li><a href="admin/home">后台首页</a></li>
			<li><a>添加商户LOGO</a></li>
		</ul>
	</div>
	<div id="content" class="text-darkgrey">
		<h2>添加商户LOGO</h2>
		<div>
			<form action="admin/business/uploadLogo" method="post">
     			<input id="search" type="text" name="search" />
     		 	<input type="submit" value="搜索" class="submit" />
    		</form>
		</div>
		<div class="text-yellow"><?=$msg?></div>
		<?php if ($num > 0) : ?>
		<table>
			<tr>
			<td class="group text-red center">LOGO</td>
			<td class="group text-red center">总店名</td>
			<td class="delete text-red center">设置LOGO</td>
			</tr>
			<?foreach ($list as $row):?>
				<tr>
					<td class="group center"><img src="<?php if($row['logoImage']!=' ') echo $row['logoImage']; else echo 'images/no-logo.jpg';?>" /></td>				
					<td class="group center"><?=$row['groupName']?></td>
					<td class="edit center">
						<form method="post" action="admin/business/uploadLogo" enctype="multipart/form-data">
							首页推送：<input class="short-input" name="show" type="checkbox" value="T" 
								<?php if ($row['show']=='T'):?>checked<?php endif;?>/>
							<input name="id" type="hidden"  value="<?=$row['id']?>" />
							<input name="groupName" type="hidden"  value="<?=$row['groupName']?>" />
							<input name="userfile" type="file" value="浏览" style="width:250px;" />
							<input type="submit" value="上传" name="sub" class="logoUpload"/>
						</form>
					</td>
				</tr>
			<?php endforeach;?>
		</table>
		<div id="page-nav" class="fn-clear"><?php echo $this->pagination->create_links ();?></div>
		<?php else : ?>
		<p>没有商户！</p>
		<?php endif;?>
	</div>
</div>